package com.example.demo.NiuKe.v02;

public class Test {
    public static void main(String[] args) {
        count("ABCabc",'a');
    }


    public static void count(String s ,char c){
        int count = 0 ;
        for (int i =0;i<s.length();i++){
            char c1 = s.charAt(i);
            if(c1+32 == c || c1-32 ==c || c1==c){
                count++;
            }
        }
        System.out.println(count);
    }
}
